using System;
using System.Collections.Generic;
using System.Text;

namespace ResDispense
{
    struct TaskStruct
    {
        private int task_id, source_id, worker_id, gained_flag, priority;
        private string input_dt, gained_dt, exec_dt, complete_dt;

        public TaskStruct(int task_id, int source_id, int worker_id, string input_dt, int gained_flag, string gained_dt, string exec_dt, string complete_dt, int priority)
        {
            this.task_id = task_id;
            this.source_id = source_id;
            this.worker_id = worker_id;
            this.input_dt = input_dt;
            this.gained_flag = gained_flag;
            this.gained_dt = gained_dt;
            this.exec_dt = exec_dt;
            this.complete_dt = complete_dt;
            this.priority = priority;
        }

        public void SetTaskStruct(int task_id, int source_id, int worker_id, string input_dt, int gained_flag, string gained_dt, string exec_dt, string complete_dt, int priority)
        {
            this.task_id = task_id;
            this.source_id = source_id;
            this.worker_id = worker_id;
            this.input_dt = input_dt;
            this.gained_flag = gained_flag;
            this.gained_dt = gained_dt;
            this.exec_dt = exec_dt;
            this.complete_dt = complete_dt;
            this.priority = priority;
        }

        public int GetTaskID()
        {
            return this.task_id;
        }

        public int GetSourceID()
        {
            return this.source_id;
        }

        public int GetWorkerID()
        {
            return this.worker_id;
        }

        public string GetInputDt()
        {
            return this.input_dt;
        }

        public int GetGainedFlag()
        {
            return this.gained_flag;
        }

        public string GetGainedDt()
        {
            return this.gained_dt;
        }

        public string GetExecDt()
        {
            return this.exec_dt;
        }

        public string GetCompleteDt()
        {
            return this.complete_dt;
        }

        public int GetPriority()
        {
            return this.priority;
        }
    }
}
